package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author Xiaoxing Yu
 * @date 2020/6/5
 **/
@Data
@TableName(value = "erp_activity_info")
public class ErpActivityInfo {

	/**
	 * 自增主键
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 活动名称
	 */
	@TableField(value = "activity_name")
	private String activityName;

	/**
	 * 1.   注册送打印卷
	 * 2.	充值送打印卷
	 * 3.	标签送打印卷
	 */
	@TableField(value = "type")
	private Integer type;

	/**
	 * 标签规则
	 */
	@TableField(value = "tag")
	private String tag;

	/**
	 * 赠送次数
	 */
	@TableField(value = "free_amount")
	private Integer freeAmount;

	/**
	 * 活动持续时长(天)
	 */
	@TableField(value = "duration")
	private String duration;

	/**
	 * 活动到期时间
	 */
	@TableField(value = "due_time")
	private Date dueTime;

	/**
	 * 活动是否开启
	 */
	@TableField(value = "is_enabled")
	private String isEnabled;

	/**
	 * 拓展内容
	 */
	@TableField(value = "extension")
	private String extension;

	/**
	 * 注释
	 */
	@TableField(value = "comment")
	private String comment;

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time")
	private LocalDateTime createTime;

	/**
	 * 更新时间
	 */
	@TableField(value = "update_time")
	private LocalDateTime updateTime;

	/**
	 * 更新人
	 */
	@TableField(value = "updated_by")
	private String updatedBy;

	public static final String COL_ID = "id";

	public static final String COL_ACTIVITY_NAME = "activity_name";

	public static final String COL_TYPE = "type";

	public static final String COL_TAG = "tag";

	public static final String COL_FREE_AMOUNT = "free_amount";

	public static final String COL_DURATION = "duration";

	public static final String COL_DUE_TIME = "due_time";

	public static final String COL_IS_ENABLED = "is_enabled";

	public static final String COL_EXTENSION = "extension";

	public static final String COL_COMMENT = "comment";

	public static final String COL_CREATE_TIME = "create_time";

	public static final String COL_UPDATE_TIME = "update_time";

	public static final String COL_UPDATED_BY = "updated_by";
}